{% capture linkattrs %}
{% assign first10oflink = link | truncate: 10 %}
{% if first10oflink contains 'https://' %}target="_blank" rel="noopener nofollow" {% endif %}
{% if first10oflink contains '#' and link contains '_popup' %}data-bs-toggle="modal" data-bs-target="{{ link }}"{% endif %}
{% endcapture %}

<a {{ linkattrs }} href="{{ settings.button_link_1 }}" style="min-width: 10rem;"
  class="btn btn-{{ btn_style }} stretched-link mt-2 mx-3">
  {{ block.settings.button_label_1 }}
</a>